package xyz.dugong114514.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MyConfig {

    @Bean(name = "mys")  //将标注方法的返回值存到spring容器
    public MyService getMyService(){
        return new MyService();
    }
}
